
import redis

pool = redis.ConnectionPool(host="localhost",
                            port=6379
                            )
conn = redis.Redis(connection_pool=pool)

conn.lpush("gkcx:starturl", "https://static-data.eol.cn/www/2.0/school/30/info.json")
for i in range(30, 3000):
    url = "https://static-data.eol.cn/www/2.0/school/{}/info.json".format(i)
    conn.lpush("gkcx:starturl", url)

print("finish")